const https = require('https');
const fs = require('fs');
const options = {
  key: fs.readFileSync('./www.wangrenren.cn.key'),
  cert: fs.readFileSync('./www.wangrenren.cn.pem')
};
const server = https.createServer(options, (req, res) => {
  res.statusCode = 200;
  res.setHeader('Content-Type', 'text/plain');
  res.end('Hello, HTTPS World!');
});

server.listen(443, () => {
  console.log('Server running on port 443');
});